package com.lucene.model;

/**
 * Created by zhangzhen on 28/09/2017.
 */

import com.lucene.utils.Utils;

import java.util.Arrays;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;

/**
 * 常量信息
 */
public interface Const {

    String[] SERVER_UPLOAD_ALLOWED_EXTENSIONS = {"txt", "pdf", "png", "jpg", "jpeg", "gif"};
    String LOG_MSG_NAME_CARD           =
            "[名片]\n" +
                    "=========================\n" +
                    "= 昵称: %s\n" +
                    "= 微信号: %s\n" +
                    "= 地区: %s %s\n" +
                    "= 性别: %s\n" +
                    "=========================";

    String[] LOG_MSG_SEX_OPTION = {"未知", "男", "女"};

    String LOG_MSG_APP_LINK =
            "[%s]\n" +
                    "=========================\n" +
                    "= 标题: %s\n" +
                    "= 描述: %s\n" +
                    "= 链接: %s\n" +
                    "= 来自: %s\n" +
                    "=========================";

    Map<String, Object> LOG_MSG_APP_LINK_TYPE =
            Utils.createMap("5", "链接", "3", "音乐", "7", "微博");

    String LOG_MSG_APP_IMG =
            "[图片]\n" +
                    "=========================\n" +
                    "= 文件: %s\n" +
                    "= 来自: %s\n" +
                    "=========================";

    String LOG_MSG_SYSTEM             = "系统消息";
    String LOG_MSG_UNKNOWN_NAME       = "未知_";
    String LOG_MSG_UNKNOWN_GROUP_NAME = "未知群_";


    String[] API_USER_AGENT = {"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3)",
            "AppleWebKit/537.36 (KHTML, like Gecko)",
            "Chrome/48.0.2564.109 Safari/537.36"};

    // 特殊用户 须过滤
    Set<String> API_SPECIAL_USER = new HashSet<String>(Arrays.asList("newsapp", "filehelper", "weibo", "qqmail",
            "fmessage", "tmessage", "qmessage", "qqsync",
            "floatbottle", "lbsapp", "shakeapp", "medianote",
            "qqfriend", "readerapp", "blogapp", "facebookapp",
            "masssendapp", "meishiapp", "feedsapp", "voip",
            "blogappweixin", "brandsessionholder", "weixin",
            "weixinreminder", "officialaccounts", "wxitil",
            "notification_messages", "wxid_novlwrv3lqwv11",
            "gh_22b87fa7cb3c", "userexperience_alarm"));

    String[] EMOTICON = {"[Smile]", "[Grimace]", "[Drool]", "[Scowl]", "[CoolGuy]", "[Sob]", "[Shy]",
            "[Silent]", "[Sleep]", "[Cry]", "[Awkward]", "[Angry]", "[Tongue]", "[Grin]",
            "[Surprise]", "[Frown]", "[Ruthless]", "[Blush]", "[Scream]", "[Puke]",
            "[Chuckle]", "[Joyful]", "[Slight]", "[Smug]", "[Hungry]", "[Drowsy]", "[Panic]",
            "[Sweat]", "[Laugh]", "[Commando]", "[Determined]", "[Scold]", "[Shocked]", "[Shhh]",
            "[Dizzy]", "[Tormented]", "[Toasted]", "[Skull]", "[Hammer]", "[Wave]",
            "[Relief]", "[DigNose]", "[Clap]", "[Shame]", "[Trick]", " [Bah！L]", "[Bah！R]",
            "[Yawn]", "[Lookdown]", "[Wronged]", "[Puling]", "[Sly]", "[Kiss]", "[Uh-oh]",
            "[Whimper]", "[Cleaver]", "[Melon]", "[Beer]", "[Basketball]", "[PingPong]",
            "[Coffee]", "[Rice]", "[Pig]", "[Rose]", "[Wilt]", "[Lip]", "[Heart]",
            "[BrokenHeart]", "[Cake]", "[Lightning]", "[Bomb]", "[Dagger]", "[Soccer]", "[Ladybug]",
            "[Poop]", "[Moon]", "[Sun]", "[Gift]", "[Hug]", "[Strong]",
            "[Weak]", "[Shake]", "[Victory]", "[Admire]", "[Beckon]", "[Fist]", "[Pinky]",
            "[Love]", "[No]", "[OK]", "[InLove]", "[Blowkiss]", "[Waddle]", "[Tremble]",
            "[Aaagh!]", "[Twirl]", "[Kotow]", "[Lookback]", "[Jump]", "[Give-in]"};

}